package com.newx.auth.license.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 生成License请求参数
 * @Created by yxl
 * @Date 2025/2/16 10:22
 */
@ApiModel(description = "成License请求参数")
public class GenerateLicenseRequest {

    @ApiModelProperty(value = "私钥文件路径")
    private String privateKeyPath;

    @ApiModelProperty(value = "License文件路径：生成到磁盘需要传")
    private String licenseFilePath;
    @ApiModelProperty(value = "有效开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validFrom;

    @ApiModelProperty(value = "有效结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validEnd;

    public String getPrivateKeyPath() {
        return privateKeyPath;
    }

    public void setPrivateKeyPath(String privateKeyPath) {
        this.privateKeyPath = privateKeyPath;
    }

    public Date getValidFrom() {
        return validFrom;
    }

    public void setValidFrom(Date validFrom) {
       this.validFrom = validFrom;
    }

    public String getLicenseFilePath() {
        return licenseFilePath;
    }

    public void setLicenseFilePath(String licenseFilePath) {
        this.licenseFilePath = licenseFilePath;
    }

    public Date getValidEnd() {
        return validEnd;
    }

    public void setValidEnd(Date validEnd) {
        this.validEnd = validEnd;
    }
}
